return info;
}
-static WidgetInfo *
-create_colorsel (void)
-{
- WidgetInfo *info;
- GtkWidget *widget;
- GtkColorSelection *colorsel;
- GtkColorSelectionDialog *selection_dialog;
- GdkRGBA rgba;
-
- widget = gtk_color_selection_dialog_new ("Color Selection Dialog");
- selection_dialog = GTK_COLOR_SELECTION_DIALOG (widget);
- colorsel = GTK_COLOR_SELECTION (gtk_color_selection_dialog_get_color_selection (selection_dialog));
-
- rgba.red = 0.4745;
- rgba.green = 0.8588;
- rgba.blue = 0.5843;
-
- gtk_color_selection_set_previous_rgba (colorsel, &rgba);
-
- rgba.red = 0.4902;
- rgba.green = 0.5764;
- rgba.blue = 0.7647;
-
- gtk_color_selection_set_current_rgba (colorsel, &rgba);
-
- info = new_widget_info ("colorsel", widget, ASIS);
- info->include_decorations = TRUE;
-
- return info;
-}
-
static WidgetInfo *
create_fontsel (void)
{
retval = g_list_prepend (retval, create_toolbar ());
retval = g_list_prepend (retval, create_tree_view ());
retval = g_list_prepend (retval, create_window ());
- retval = g_list_prepend (retval, create_colorsel ());
retval = g_list_prepend (retval, create_filesel ());
retval = g_list_prepend (retval, create_fontsel ());
retval = g_list_prepend (retval, create_assistant ());